package com.zy.cat.entity.dev.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import com.zy.cat.entity.dev.CatDevRegisterInfo;
public interface CatDevRegisterInfoRepository extends JpaSpecificationExecutor<CatDevRegisterInfo>,  JpaRepository<CatDevRegisterInfo, String>{
	public CatDevRegisterInfo findByPid(String pid);
	public List<CatDevRegisterInfo> findByImeiOrImsi(String imei,String imsi);
	
	public List<CatDevRegisterInfo> findByImei(String imei);
	
	//获取设备号相同的账号数量
	public int countByImeiOrImsi(String imei,String imsi);
}
